package model.advertisers;

import java.util.List;

import model.advertisers.reference.AdvertiserReference;
import model.domain.Advert;

public abstract class Advertiser {

	private AdvertiserReference advertiserReference;

	private int currentPage;
	private String location;
	private String kind;
	private String category;
	private String keyWord;

	// todo price Min and Max
	private Integer min;
	private Integer max;

	private boolean lastPageReached;

	private String name;
	private String pathPicture;

	public Advertiser() {

	}

	public void setName(String name) {
		this.name = name;
	}

	public String getName() {
		return name;
	}

	public void setPathPicture(String pathPicture) {
		this.pathPicture = pathPicture;
	}

	public String getPathPicture() {
		return pathPicture;
	}

	public abstract String getUrlRoot();

	public abstract String getUrlResearch();

	public abstract String findContentForOnePage();

	public abstract List<Advert> findAdvertsForOnePage(String allTheContent);

	public abstract List<Advert> findMoreAdverts();

	public abstract List<Advert> findAdverts();

	public abstract Advert findDetails(Advert advert);

	public abstract boolean isLastPage(char[] allChar);

	public abstract String reparse(String source);

	public abstract String sendMail(Advert advert, String nameSender,
			String mailSender, String message);

	public int getCurrentPage() {
		return currentPage;
	}

	public void setCurrentPage(int currentPage) {
		this.currentPage = currentPage;
	}

	public String getLocation() {
		return location;
	}

	public void setLocation(String location) {
		this.location = location;
	}

	public String getKind() {
		return kind;
	}

	public void setKind(String kind) {
		this.kind = kind;
	}

	public String getCategory() {
		return category;
	}

	public void setCategory(String category) {
		this.category = category;
	}

	public String getKeyWord() {
		return keyWord;
	}

	public void setKeyWord(String keyWord) {
		this.keyWord = keyWord;
	}

	public boolean isLastPageReached() {
		return lastPageReached;
	}

	public void setLastPageReached(boolean lastPageReached) {
		this.lastPageReached = lastPageReached;
	}

	public AdvertiserReference getAdvertiserReference() {
		return this.advertiserReference;
	}

	public void setAdvertiserReference(AdvertiserReference advertiserReference) {
		this.advertiserReference = advertiserReference;
	}

	public Integer getMin() {
		return min;
	}

	public void setMin(Integer min) {
		this.min = min;
	}

	public Integer getMax() {
		return max;
	}

	public void setMax(Integer max) {
		this.max = max;
	}

}
